import os
basedir = os.path.abspath(os.path.dirname(__name__))


class BaseConfig:
    SECRET_KEY = "5EHSDJHFWQhjhsjhdh/d_sdhjhjd=whdjdfhjhfGHSDG"
    BABEL_DEFAULT_LOCALE = "zh_CN"
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(basedir, "app\\web_data.sqlite")


class DevelopmentConfig(BaseConfig):
    DEBUG = True


class TestingConfig(BaseConfig):
    pass


class ProductionConfig(BaseConfig):
    pass


config = {
    "development": DevelopmentConfig,
    "testing": TestingConfig,
    "production": ProductionConfig,

    "default": DevelopmentConfig
}
